#pragma once

#include "effectbase.h"
#include <osg\Vec4>

namespace VrDataCore
{
	class VRDATACORE_EXPORT MaterialEffect:public EffectBase
	{
	public:
		MaterialEffect();
	protected:
		~MaterialEffect();
	public:
		virtual void buildPropertyMap();
		virtual osg::ref_ptr<CoreBase::ActorBase> clone();
		virtual void apply(CoreBase::ActorBase* actor);
		virtual void unApply(CoreBase::ActorBase* actor);
		void setMaterialEffect(osg::Vec4 material);
		osg::Vec4 getMaterialEffect();
		void setEffectMode(int type);
	private:
		osg::Vec4	_materialEffect;
		int			_mode;
	};
}